package com.kkb.kkbcommon.annotation.validation.annotation;

import com.kkb.kkbcommon.annotation.validation.validator.Ipv4AddressValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author: 朱明亮
 * @Description: 匹配IPV4地址
 * @Data Created in 2021-08-20 15:21:25
 * @Modified by:
 */
@Target(ElementType.FIELD)
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = Ipv4AddressValidator.class)
public @interface Ipv4Address {

    String message() default  "不是正确的ipv4地址";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
